'''
''' Override the Sub Page_Load_InitPageSettings() in the Page Class to go to specific page.
'''
Protected Overrides Sub Page_Load_InitPageSettings(ByVal sender As Object, ByVal e As EventArgs)
' If not IsPostBack Then
If Not Me.IsPostBack Then
' Set the PageIndex to the value passed via the URL
If (Not (Me.Request.QueryString("page")) Is Nothing) Then
Me.${Table Control}.PageIndex = (Integer.Parse(Me.Request.QueryString("page")) - 1)
' Call the DataBind() method to refresh the page
Me.DataBind
End If
End If
' Return MyBase.ModifyRedirectUrl
MyBase.Page_Load_InitPageSettings(sender, e)
End Sub
|